import {ApolloClient, InMemoryCache} from "@apollo/client";
import {globalModel} from "@/models/globalModel";

export const createGraphqlClient = () => {
    return new ApolloClient({
        uri: '/api/v2/graphql',
        cache: new InMemoryCache(),
        headers: {
            tenantId: globalModel.tenantId || "0"
        }
    })
}